use super::common_import::*;

#[pyfunction]
pub fn py_import(py: Python, m: &PyModule) -> PyResult<String> {
    test_import(py);    
    Ok(m.name().map_or("Failed to get module name".to_string(), |r| r.to_string()))
}

fn test_import(py: Python) {
    let scapy_module = PyModule::import(py, "scapy").expect("Failed to import scapy");
    trace!("scapy -- {:?}", scapy_module.name());
}